function mandomNum(num = 4){
    return Math.floor(Math.random()*10**4)
}
function changeObj (obj){
    var tmpObj={}
    for( key in obj){
        tmpObj[key] = obj[key]+mandomNum()
    }
    return tmpObj
}
function changeObj2 (obj, i){
    var tmpObj={}
    for( key in obj){
        tmpObj[key] = obj[key]+i
    }
    return tmpObj
}
function createList (obj, length = 10){
    var arr = []
    for(let i=0; i<=length; i++){
        arr.push(changeObj(obj))
    }
    return arr
}
function createListIndex (obj, length = 10){
    var arr = []
    for(let i=0; i<=length; i++){
        arr.push(changeObj2(obj, i))
    }
    return arr
}
module.exports = {
    changeObj,
    createList,
    createListIndex,
    mandomNum
}